{extend name="$_admin_base_layout" /} {block name="body"}
	<div class="container-fluid" style="padding-top: 10px; background-color: rgb(240, 242, 245);">
		<div class="panel">
			<div class="panel-body">
				<form class="form-inline form-search">
					<div class="form-group">
						<label>状态：</label>
                        {html:select name="status" options="data_status" selected="status" clazz="form-control" first="全部"/}
					</div>

					<div class="form-group">
						<label>学期标识/名称：</label>
						<input type="text" class="form-control" name="title" value="{$title|default=''}">
					</div>
					<button type="submit" class="btn btn-primary">查询</button>
					<button type="button" class="btn btn-default btn-reset">重置</button>
				</form>
			</div>
			<!-- 数据表格 -->
			<table class="table table-sorter">
				<!-- 表头 -->
				<thead>
				<tr>
					<th style="width: 20px;">#</th>
					<th>学期标识</th>
					<th>学期名称</th>
					<th>起始日期</th>
					<th>截止日期</th>
					<th>状态</th>
					<th style="width: 110px;">操作</th>
				</tr>
				</thead>
				<!-- 列表 -->
				<tbody>
                {notempty name="data_list"} {volist name="data_list" id="info"}
					<tr>
						<td>{$i}</td>
						<td>{$info.name}</td>
						<td>{$info.title}</td>
						<td>{$info.start_date|date='Y-m-d'}</td>
						<td>{$info.end_date|date='Y-m-d'}</td>
						<td>{$info.status_text|raw}</td>
						<td>
							<a href="{:url('edit',array('id'=>$info['id']))}" data-toggle="modal" data-icon="cogs"
							   data-title="编辑学期">编辑</a>
							<a href="{:url('delete',array('id'=>$info['id']))}"
							   class="confirm ajax-get">删除</a></td>
					</tr>
                {/volist} {else/}
					<tr>
						<td class="text-center" colspan="7">aOh! 暂时还没有内容!</td>
					</tr>
                {/notempty}
				</tbody>
				<tfoot>
				<tr>
					<td colspan="7">
                        {$pager||raw}
					</td>
				</tr>
				</tfoot>
			</table>
		</div>
	</div>
{/block}
{block name="sub_menu_action"}
	<ul class="nav nav-pills" style="margin-right: 10px;">

		<li>
			<a href="{:url('add')}" data-toggle="modal" data-icon="cogs" data-title="新增学期">
				<i class="icon-plus"></i> 新增
			</a>
		</li>

	</ul>
{/block}
